<?php
require_once 'database/Tag.php';
require_once 'database/DatabaseConnection.php';
require_once 'command/GetTagsCommand.php';

class TagTest{
	
	private $ids = '1;2;3;4;5';
	private $idsOutcome = array(1,2,3,4,5);
	private $tagCommand;
	
	public function __construct(){
		$this->tagCommand = new GetTagsCommand();
	}
	
	/**
	 * Tests the toArray function
	 */
	public function testToArray(){
		$arr = $this->tagCommand->toArray($this->ids);
		if(count($this->idsOutcome) != count($arr)){
			return false;
		}
		for($i=0; $i<count($this->idsOutcome); $i++){
			if($arr[$i] != $this->idsOutcome[$i]){
				return false;
			}
		}
		return true;
	}
	
	/**
	 * 
	 */
	//public function 
	
}